<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="pagePath" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改学生资料</title>
<link type="text/css" rel="stylesheet" href="${pagePath}/page/static/admin/css/icons.css" />
<link type="text/css" rel="stylesheet" href="${pagePath}/page/static/admin/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="${pagePath}/page/static/admin/css/plugins.css" />
<link type="text/css" rel="stylesheet" href="${pagePath}/page/static/admin/css/main.css" />
</head>
<body>
	<div id="header">
		<div class="container-fluid">
			<div class="navbar">
				<div class="navbar-header">
					<a class="navbar-brand" href="${pagePath}/admin_index.do"><img alt="LOGO" src="${pagePath}/page/static/admin/images/logo.jpg" style="padding-left: 10px;"><span class="text-slogan" style="margin-top: 0px; margin-left: 10px;">校园二手交易后台</span> </a>
				</div>
				<nav class="top-nav" role="navigation">
					<ul class="nav navbar-nav pull-left">
						<li><a href="${pagePath}/admin_index.do"> <img class="user-avatar" src="${pagePath}/page/static/admin/images/admin.png" alt="head img"> ${loguser.username} [${loguser.role}]
						</a></li>
					</ul>
					<ul class="nav navbar-nav pull-right">
						<li><a href="javascript:void(0);"><i class="ec-clock"></i> <span id="time"></span></a></li>
						<li><a href="${pagePath}/index.do"><i class="im-home"></i> 网站首页</a></li>
						<li><a href="${pagePath}/logout.do"><i class="en-logout"></i> 退出登录</a></li>
					</ul>
				</nav>
			</div>
		</div>
	</div>
	<div id="sidebar">
		<div class="sidebar-inner">
			<ul id="sideNav" class="nav nav-pills nav-stacked">
				<li><a href="${pagePath}/admin_index.do">后台首页<i class="im-home"></i></a></li>
				<c:if test="${loguser.role eq '普通学生'}">
					<li><a href="${pagePath}/admin_goods_add.do">发布商品<i class="im-quill"></i></a></li>
					<li><a href="${pagePath}/admin_task_add.do">发布任务<i class="im-paragraph-left"></i></a></li>
					<li><a href="${pagePath}/admin_goods_list.do">商品管理<i class="im-stack"></i></a></li>
					<li><a href="${pagePath}/admin_task_list.do">任务管理<i class="im-stackoverflow"></i></a></li>
					<li><a href="${pagePath}/admin_order_list.do">订单管理<i class="im-stack"></i></a></li>
				</c:if>
				<c:if test="${loguser.role eq '管理员'}">
					<li><a href="${pagePath}/admin_goods_audit.do">商品审核<i class="im-checkbox-checked"></i></a></li>
					<li><a href="${pagePath}/admin_task_audit.do">任务审核<i class="im-checkmark"></i></a></li>
					<li><a class="active" href="${pagePath}/admin_user_list.do">学生管理<i class="im-users"></i></a></li>
				</c:if>
			</ul>
		</div>
	</div>
	<div id="content">
		<div class="content-wrapper">
			<div class="row">
				<div class="col-md-12 heading">
					<h1 class="page-header">
						<i class="im-users"></i> 修改学生资料
					</h1>
					<div class="col-md-12">
						<div class="panel panel-default">
							<div class="panel-heading">
								<h4 class="panel-title">填写学生资料</h4>
							</div>
							<div class="panel-body" style="height: 550px; padding-top: 100px;">
								<form class="form-horizontal" action="${pagePath}/admin_user_modify_save.do" method="post">
									<input type="hidden" id="user_id" name="user_id" value="${user.id}">
									<div class="form-group">
										<div class="col-md-offset-4 col-md-4" style="font-size: 30px; text-align: center;">修改学生资料</div>
									</div>
									<div class="form-group">
										<div class="col-md-offset-4 col-md-4" align="center">
											<span style="color: red; font-weight: bold; font-size: 17px;">${message}</span>
										</div>
									</div>
									<div class="form-group">
										<label for="username" class="col-md-4 control-label">学号</label>
										<div class="col-md-4">
											<input class="form-control" type="text" value="${user.username}" readonly="readonly">
										</div>
									</div>
									<div class="form-group">
										<label for="mobile" class="col-md-4 control-label">手机号</label>
										<div class="col-md-4">
											<input class="form-control" type="text" id="mobile" name="mobile" value="${user.mobile}" placeholder="请输入手机号" required="required" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,'')" onfocus="this.value=this.value.replace(/\D/g,'')">
										</div>
									</div>
									<div class="form-group">
										<label for="address" class="col-md-4 control-label">地址</label>
										<div class="col-md-4">
											<input class="form-control" type="text" id="address" name="address" value="${user.address}" placeholder="请输入地址" required="required">
										</div>
									</div>
									<div class="form-group">
										<div class="col-md-offset-4 col-md-2">
											<button class="btn btn-success col-md-12" type="submit">保存</button>
										</div>
										<div class="col-md-2">
											<button class="btn btn-danger col-md-12" type="button" onclick="javascript:history.go(-1);">返回</button>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="${pagePath}/page/static/admin/js/pace.min.js"></script>
	<script type="text/javascript" src="${pagePath}/page/static/admin/js/jquery.min.js"></script>
	<script type="text/javascript" src="${pagePath}/page/static/admin/js/bootstrap.js"></script>
	<script type="text/javascript" src="${pagePath}/page/static/admin/js/time.js"></script>
</body>
</html>